/**
 * Copyright &copy; 2012-2013 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 */
package com.creditease.tmsp.modules.sys.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.creditease.tmsp.common.persistence.MyBatisBaseDao;
import com.creditease.tmsp.common.persistence.Page;
import com.creditease.tmsp.common.security.Digests;
import com.creditease.tmsp.common.service.BaseService;
import com.creditease.tmsp.common.service.MyBatisBaseService;
import com.creditease.tmsp.common.utils.Encodes;
import com.creditease.tmsp.modules.sys.dao.SysRoleDao;
import com.creditease.tmsp.modules.sys.dao.SysRoleResourceDao;
import com.creditease.tmsp.modules.sys.dao.SysUserDao;
import com.creditease.tmsp.modules.sys.entity.SysRole;
import com.creditease.tmsp.modules.sys.entity.SysRoleResource;
import com.creditease.tmsp.modules.sys.entity.SysUser;

/**
 * 系统管理，安全相关实体的管理类,包括用户、角色、菜单.
 * @author ThinkGem
 * @version 2013-5-15
 */
@Service
@Transactional
public class RoleResourceService extends MyBatisBaseService<SysRoleResource>  {
	
	@Autowired
	private SysRoleResourceDao roleResourceDao;

	
	public void deleteByRoleIdResourceId(String resourceId,String roleId){
		roleResourceDao.deleteByRoleIdResourceId(resourceId, roleId);
	}
	
	@Override
	public MyBatisBaseDao<SysRoleResource> getDao() {
		return roleResourceDao;
	}
	

}
